class Student {
    private String name;
    private int age;
    private int score;
    static String className = "lisi";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public static String getClassName() {
        return className;
    }

    public static void setClassName(String className) {
        Student.className = className;
    }

    public Student(String name, int age, int score) {
        this.name = name;
        this.age = age;
        this.score = score;
        System.out.println("调用了构造方法");
    }

    {
        this.name = "zhangsan";
        System.out.println("这里执行了实例化代码块");
    }

    static {
        className = "三班";
        System.out.println("执行了静态代码块");
    }

    public void eat() {
        System.out.println(this.name + "在吃饭");
    }

    public void Score() {
        System.out.println(this.name + "他的分数是：" + this.score);
    }


}
